package com.budwk.app.gzsocket.wsclient.application;


import com.budwk.app.gzsocket.wsclient.ChatSocketClient;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

/**
 * 即时通讯推送接口
 */
@IocBean
public class ChatAppGatewat {
    @Inject
    ChatSocketClient chatSocketClient;

    /**
     * 调用推送
     * @param channel 类别
     * @param event 事件名称
     * @param data 数据
     */
    public void sendToGroup(String channel, String event, Object data) {
        chatSocketClient.sendMessage(channel, event, data);
    }

}
